<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0"

	xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

	<xsl:template match="/">
		<html>
			<body>
				<h2>DVD Catalog</h2>
				<table border="1">
					<tr bgcolor="#9acd32">
						<th>Name</th>
						<th>Director</th>
						<th>Year</th>
						<th>Genre</th>
						<th>Rent</th>
					</tr>
					<xsl:for-each select="catalog/DVD">
						<tr>
							<td>
								<xsl:value-of select="name" />
							</td>
							<td>
								<xsl:value-of select="director" />
							</td>
							<td>
								<xsl:value-of select="year" />
							</td>
							<td>
								<xsl:value-of select="genre" />
							</td>
							<td>
								<xsl:element name="a">
									<xsl:attribute name="href">
        								rent?id=<xsl:value-of select="id" />
    								</xsl:attribute>
    								<xsl:attribute name="target">
        								_parent
    								</xsl:attribute>
									Rent
								</xsl:element>
							</td>
						</tr>
					</xsl:for-each>
				</table>
			</body>
		</html>
	</xsl:template>
</xsl:stylesheet>